<template>
  <div class="wrap">
    <header>
      <div class="hea">
        <span @click="go">&lt;</span>
        <h3>我的发布</h3>
      </div>
    </header>
    <main>
      <div class="fabu1">
        <van-dropdown-menu>
          <van-dropdown-item v-model="value1" :options="option1" />
          <van-dropdown-item v-model="value2" :options="option2" />
        </van-dropdown-menu>
      </div>
      <div class="fabu2">
        <div class="fabuhome">
          <img src="../img/home.png" alt />
          <div class="font">
            <h4>汤臣一品</h4>
            <p>43平/2室 1厅/远洋新天地</p>
            <span>2000/月</span>
            <p>
              <span class="xiaoqu">小区</span>
            </p>
          </div>
        </div>
      </div>
    </main>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      fabuList: [],
      value1: 0,
      value2: "a",
      option1: [
        { text: "二手房出售", value: 0 },
        { text: "出租房", value: 1 },
        { text: "求购", value: 2 },
        { text: "求租", value: 3 }
      ],
      option2: [
        { text: "审核状态", value: "a" },
        { text: "通过", value: "b" },
        { text: "不通过", value: "c" },
        { text: "审核中", value: "d" },

      ]
    };
  },
  created() {
    this.getList();
  },
  methods: {
    go() {
      this.$router.go(-1);
    },
    getList() {
      axios({
        url: "/api/getList",
        method: "post"
      }).then(res => {
        console.log(res);
      });
    },
    tan_shou() {
      this.show = true;
    },
    tan_shenhe() {
      this.show = true;
    }
  }
};
</script>

<style lang="scss">
.wrap {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  width: 100%;
  height: 50px;
  background: rgb(72, 72, 225);
  .hea {
    display: flex;
    width: 100%;
    height: 50px;
    align-items: center;
    text-align: center;
    span {
      padding-left: 5%;
    }
    h3 {
      padding-left: 35%;
    }
  }
}
main {
  flex: 1;
  overflow-y: scroll;
  .fabu1 {
    height: 50px;
    border-bottom: 1px solid #999;
    van-dropdown-menu {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
  }
  .fabu2 {
    .fabuhome {
      display: flex;
      padding: 10px;
      img {
        width: 120px;
        height: 80px;
      }
      .font {
        padding-left: 20px;
        p {
          font-size: 14px;
          color: #999;
        }
        span {
          color: orange;
          font-size: 15px;
        }
        .xiaoqu {
          text-align: center;
          line-height: 20px;
          width: 50px;
          height: 20px;
          font-size: 14px;
          background: #f1f1f1;
          color: #999;
          padding: 0 13px;
        }
      }
    }
  }
}
</style>